Skip to content

Call NetworkTableInstance.waitForListenerQueue() before close() - #54

Merged
kcooney merged 2 commits into
mainfrom
kcooney/wait-for-listener-queue
Sep 23, 2025
Merged

Call NetworkTableInstance.waitForListenerQueue() before close()#54
kcooney merged 2 commits into
mainfrom
kcooney/wait-for-listener-queue

Conversation

@kcooney

@kcooney kcooney commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

This works around a race condition where a listener registered by Preferences
was called after the NetworkTableInstance was closed.

Also call NetworkTableInstance.startLocal() so that networktables.json is not read.

@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch 5 times, most recently from 384b28d to fc9bd06 Compare September 6, 2025 06:09
@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch from 84ac240 to 3fecbbe Compare September 6, 2025 06:22
@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch from 4fba0b6 to 3a9b57d Compare September 6, 2025 19:10
@kcooney
kcooney changed the base branch from main to kcooney/test-results-use-logger September 6, 2025 19:11
@kcooney
kcooney force-pushed the kcooney/test-results-use-logger branch from 15df1ed to b5116ad Compare September 6, 2025 19:18
@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch from 3a9b57d to dfe760a Compare September 6, 2025 19:19
@kcooney
kcooney force-pushed the kcooney/test-results-use-logger branch from b5116ad to 2a3b1e7 Compare September 19, 2025 01:37
@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch from dfe760a to e41280f Compare September 19, 2025 01:38
@kcooney
kcooney force-pushed the kcooney/test-results-use-logger branch from 2a3b1e7 to 9ae86e0 Compare September 20, 2025 01:20
@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch from e41280f to e8e0e39 Compare September 20, 2025 01:23

@cuttestkittensrule cuttestkittensrule left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

This works around a race condition where a listener registered by Preferences
was called after the NetworkTableInstance was closed.
@kcooney
kcooney force-pushed the kcooney/wait-for-listener-queue branch from e8e0e39 to b13cc4c Compare September 23, 2025 01:00
@kcooney
kcooney changed the base branch from kcooney/test-results-use-logger to main September 23, 2025 01:30
@kcooney
kcooney merged commit 0fbbdbd into main Sep 23, 2025
1 check passed
@kcooney
kcooney deleted the kcooney/wait-for-listener-queue branch September 23, 2025 01:44
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 24, 2025
kcooney added a commit to Prospect-Robotics/Robot2025 that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants